
var zfgc_bar = function(text,datas){
		require.config({
            paths: {echarts: 'script/echarts'}
        });
		require(['echarts', 'echarts/chart/bar'],
        function (ec) {
            // 基于准备好的dom，初始化echarts图表
            
            var chart_goods = ec.init(document.getElementById('chartsbar'));
            var option = {};
            option = {
                title: {text: ''},
                tooltip: {trigger: 'item'},
                axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                    type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                },
                legend: {data: [text]},
                animation: false,//去掉动画效果 解决重影问题
                realtime: false,
                xAxis: [
                    {
                        type: 'category',
                        data: datas.label
                    }
                ],
                yAxis: [
                    {
                        type: 'value'
                    }
                ],
                series: [
                    {
                        type: 'bar',
                        name: text,
                        data: datas.value,
                        clickable: false
                    }
                ]
            };
            // 为echarts对象加载数据
            chart_goods.setOption(option);
        });

	}
    
	